﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JinDu_In.aspx.cs" Inherits="syc.Fc.JinDu_In" %>
<html>
<head></head>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>
<form id="form1" runat="server">
<div id="wintop" class="wintop">生产日进度数据录入</div>

<asp:Panel ID="Panel1" runat="server" CssClass="panel">

    <asp:Button ID="Button_Finish" runat="server" Text="保 存" CssClass="button" 
        UseSubmitBehavior="False" onclick="Button_Finish_Click"  />
    <asp:Button ID="Button_New" runat="server" Text="录入下一条" CssClass="button2" 
        UseSubmitBehavior="False" onclick="Button_New_Click" Visible="false"  />
    <input type="button" value="关 闭" class="button" onclick="parent.swin2_close();" />
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" CssClass="panel">

分 厂：<asp:DropDownList ID="FenChang" runat="server" Width="120" Enabled="false">
    <asp:ListItem Value="1">一分厂</asp:ListItem>
    <asp:ListItem Value="2">二分厂</asp:ListItem>
    <asp:ListItem Value="5">五分厂</asp:ListItem>
</asp:DropDownList>          
<span style="margin-left:20px;"></span>工 段：<asp:DropDownList ID="GongDuan" runat="server" Width="120">
    <asp:ListItem Value="1">甲班</asp:ListItem>
    <asp:ListItem Value="2">乙班</asp:ListItem>
    <asp:ListItem Value="3">丙班</asp:ListItem>
    <asp:ListItem Value="4">丁班</asp:ListItem>
</asp:DropDownList>
<div style="height:6px;font-size:6px;line-height:6px;"></div>
<!-- =================================================================================================== -->
<!-- ========                               产品类别列表                                     =========== -->
<!-- ========                                                                               =========== -->
<!-- =================================================================================================== -->
<asp:SqlDataSource ID="DS_ChanPin" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                    SelectCommand="SELECT [ID],[品名]+' '+[钢级]+' '+[规格] AS 名称 FROM [产品]" >
</asp:SqlDataSource>
产品：
<asp:DropDownList ID="ChanPin" runat="server" Width="150px" Font-Size="12px" DataSourceID="DS_ChanPin" 
                               DataTextField="名称" DataValueField="ID">
</asp:DropDownList>
<!-- =================================================================================================== -->

<span style="margin-left:20px;"></span>日 期：<asp:TextBox ID="RiQi" runat="server" CssClass="textbox" Width="120" Font-Size="13px"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi').value, document.getElementById('RiQi'));" />
<span style="margin-left:20px;"></span><asp:RadioButton ID="RadioButton1" runat="server" Text="1号线" GroupName="scx" Checked="true" Visible="false" AutoPostBack="true" oncheckedchanged="RadioButton1_CheckedChanged" />
<asp:RadioButton ID="RadioButton2" runat="server" Text="2号线" GroupName="scx" Visible="false" AutoPostBack="true" oncheckedchanged="RadioButton2_CheckedChanged" />

</asp:Panel>
<asp:Panel ID="Panel3" runat="server" CssClass="panel">
<style>
td{padding:3px 2px 1px 2px;}
input.textbox{font-size:16px;text-align:center;}
</style>
<table border="1" style="border-collapse:separate;font-size:14px;margin-bottom:7px;text-align:center;" width="100%" >
<tr>
<td width="100" style="border:none"><b>钢管</b></td>
<td width="120">计划支数<br><asp:TextBox ID="JiHuaZhi" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td width="120">计划重量(kg)<br><asp:TextBox ID="JiHuaZhong" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td width="120">投入支数<br><asp:TextBox ID="TouRuZhi" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td width="120">投入重量(kg)<br><asp:TextBox ID="TouRuZhong" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>

</tr>
<tr bgcolor="#fffff8">
<td rowspan="2"><b>车丝支数</b></td>
<td>1#<asp:TextBox ID="CheSi1" runat="server" CssClass="textbox" Width="84" Text="0"></asp:TextBox></td>
<td>2#<asp:TextBox ID="CheSi2" runat="server" CssClass="textbox" Width="84" Text="0"></asp:TextBox></td>
<td>3#<asp:TextBox ID="CheSi3" runat="server" CssClass="textbox" Width="84" Text="0"></asp:TextBox></td>
<td>4#<asp:TextBox ID="CheSi4" runat="server" CssClass="textbox" Width="84" Text="0"></asp:TextBox></td>
</tr>
<tr bgcolor="#fffff8">
<td>5#<asp:TextBox ID="CheSi5" runat="server" CssClass="textbox" Width="84" Text="0"></asp:TextBox></td>
<td>6#<asp:TextBox ID="CheSi6" runat="server" CssClass="textbox" Width="84" Text="0"></asp:TextBox></td>
<td>　</td>
<td>　</td>
</tr>
<tr>
<td style="border:none"><b>机紧(支)</b></td>
<td>自产<br><asp:TextBox ID="JiJin1" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>外购<br><asp:TextBox ID="JiJin2" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td style="border:none"><b>静水压(支)</b></td>
<td>合格<br><asp:TextBox ID="JingShuiYa" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
</tr>

<tr bgcolor="#fffff8">
<td><b>称重测长</b></td>
<td>支数<br><asp:TextBox ID="CCZhi" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>长度(m)<br><asp:TextBox ID="CCChang" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>重量(kg)<br><asp:TextBox ID="CCZhong" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>　</td>
</tr>

<tr>
<td style="border:none"><b>成品包装</b></td>
<td>支数<br><asp:TextBox ID="BZZhi" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>捆数<br><asp:TextBox ID="BZKun" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>长度(m)<br><asp:TextBox ID="BZChang" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>重量(kg)<br><asp:TextBox ID="BZZhong" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
</tr>
<tr bgcolor="#fffff8">
<td><b>成品入库</b></td>
<td>支数<br><asp:TextBox ID="RKZhi" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>捆数<br><asp:TextBox ID="RKKun" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>长度(m)<br><asp:TextBox ID="RKChang" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>重量(kg)<br><asp:TextBox ID="RKZhong" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
</tr>
<tr>
<td style="border:none"><b>未入库</b></td>
<td>支数<br><asp:TextBox ID="WRKZhi" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td>重量(kg)<br><asp:TextBox ID="WRKZhong" runat="server" CssClass="textbox" Width="100" Text="0"></asp:TextBox></td>
<td></td>
<td></td>
</tr>
</table>
</asp:Panel>
</form>

<script>
var notice = '<%=this.Notice %>';
if (notice != '') {
    parent.showmsgbox(notice);
}
var textboxs = document.getElementsByTagName("input");
for (var i = 0; i < textboxs.length; i++) {
    if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "textbox") {
        textboxs[i].onfocus = function(e) { this.select(); };
    }
}
document.onkeydown = function(e) {
    if (!e) e = window.event;
    var tag = e.srcElement;
    if (!tag) tag = e.target;

    if (tag.tagName == "INPUT" && tag.className == "textbox" || tag.tagName == "INPUT" && tag.type == "radio" || tag.tagName == "SELECT") {
        if (e.keyCode == 13) {
            if (tag.id == "WRKZhong") {
                document.getElementById("Button_Finish").focus();
                return false;
            }
            e.keyCode = 9;
        }
    }
}
</script>
</body>
</html>